let proxyObj={}

proxyObj['/api']={
    ws:false,
    target: 'http://localhost:9090',
    changeOrigin: true,
    pathRewrite: {                   //路径重写
        '/api': ''                     //选择忽略拦截器里面的单词
    }
}

proxyObj['/ws']={
    ws:true,
    target: 'ws://localhost:9090',
}

module.exports = {
    transpileDependencies: ["vuetify"],
    // 跨域配置
    devServer: {
        disableHostCheck: true,//记住，别写错了devServer//设置本地默认端口  选填
        port: 9527,
        proxy:proxyObj
    }
}
